#ifndef _WIFIDOG_MGW_H_
#define _WIFIDOG_MGW_H_

#include <stdbool.h>
#include <mysql.h>


char *SuperStringsCat (char *String1, ...);

void open_conn();

void close_conn();

MYSQL_RES* query (char* input);

char* get_db_token (char* mac);

void insert(char* username, char* date, char* ip, char* mac,char* token);

void update(char* mac, char* date);

void delete(char* mac);

bool check(char* mac);

char* currentDatetime();

#endif /*_WIFIDOG-MGW_H_*/
